Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use temp dirs in lockfile script #6365

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

albin-mullvad
Copy link
Collaborator

@albin-mullvad albin-mullvad commented Jun 17, 2024

This PR aims to automatically use temp dirs in the lockfile script.


This change is Reviewable

@albin-mullvad albin-mullvad added the Android Issues related to Android label Jun 17, 2024
@albin-mullvad albin-mullvad self-assigned this Jun 17, 2024
Copy link

linear bot commented Jun 17, 2024

@albin-mullvad albin-mullvad force-pushed the use-temp-dirs-in-lockfile-script-droid-1067 branch 2 times, most recently from 5896d18 to 1bc94a9 Compare June 18, 2024 06:16
@albin-mullvad albin-mullvad marked this pull request as ready for review June 18, 2024 06:58
Copy link
Contributor

@Pururun Pururun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @albin-mullvad)


android/scripts/update-lockfile.sh line 11 at r3 (raw file):

# regardless if stopped.
GRADLE_OPTS="-Dorg.gradle.daemon=false"
GRADLE_USER_HOME=$(mktemp -d -t gradle-home-XXX)

Should we add a comment that -t is needed because of OSX?


android/scripts/update-lockfile.sh line 26 at r3 (raw file):

echo "### Updating dependency lockfile ###"
echo "Gradle home: $GRADLE_USER_HOME"

Maybe remove these since they are mostly for debugging?

@albin-mullvad albin-mullvad force-pushed the use-temp-dirs-in-lockfile-script-droid-1067 branch from 1bc94a9 to 535a073 Compare June 18, 2024 07:43
@albin-mullvad albin-mullvad requested a review from Pururun June 18, 2024 07:44
Copy link
Collaborator Author

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @Pururun)


android/scripts/update-lockfile.sh line 11 at r3 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Should we add a comment that -t is needed because of OSX?

Done!


android/scripts/update-lockfile.sh line 26 at r3 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Maybe remove these since they are mostly for debugging?

Doesn't hurt much and would be nice to keep since we've had tons of strange issues generating the lockfile and otherwise might have a hard time debugging in some scenarios such as GH actions. Sounds OK?

Copy link
Contributor

@Pururun Pururun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


android/scripts/update-lockfile.sh line 26 at r3 (raw file):

Previously, albin-mullvad wrote…

Doesn't hurt much and would be nice to keep since we've had tons of strange issues generating the lockfile and otherwise might have a hard time debugging in some scenarios such as GH actions. Sounds OK?

It is ok with me :)

@albin-mullvad albin-mullvad merged commit 9b7804a into main Jun 18, 2024
27 checks passed
@albin-mullvad albin-mullvad deleted the use-temp-dirs-in-lockfile-script-droid-1067 branch June 18, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants